package com.jxb.demo.common;

import java.io.Serializable;

/**
 * @desc api响应体
 */
public class ResponseResult<T> implements Serializable {

    private String code = "0000";

    private String msg;

    private T data;

    public ResponseResult(){
        this.code = "0000";
        this.msg = "请求成功";
    }

    public T getData() {
        return data;
    }

    public ResponseResult setData(T data) {
        this.data = data;
        return this;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
